#!/usr/bin/env python3
# -*-coding:utf-8 -*-
"""
@__author__=LuL

"""

from selenium.webdriver.common.by import By

'''
话题页的元素类
'''


class LoginLoc(object):
    user_name = (By.ID, 'username')  # 用户名
    password = (By.ID, 'psw')  # 密码
    verification_code_input = (By.ID, 'code')  # 验证码输入框
    verification_code_pic = (By.XPATH, '//*[@id="codeImage"]/img')  # 验证码图片
    login_button = (By.XPATH, '//*[@id="btn"]/button')  # 登录按钮
    copy_right = (By.XPATH, '//*[@id="login"]/div/p')  # copyright 备案信息
    copy_right_turn_to = (By.XPATH, '//*[@id="login"]/div/p/a')  # 备案跳转超链接
    warn = (By.XPATH, '//*[@id="login"]/div/div[1]/div/lable[1]/div/span')  # 未填用户名、密码提示
    # warn_password = (By.XPATH, '//*[@id="login"]/div/div[1]/div/lable[1]/div/span')  # 未填密码提示
    error_login = (By.XPATH, '//*[@id="msgcontainer-toast"]/div')  # 账号或密码错误
    logout_button = (By.XPATH, '//*[@id="headerx"]/div/div/div[2]/div[2]/a')  # 退出登录
